﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Kohvik.Kohvikuteenus;

namespace Kohvik {

    public partial class muudatused_valikohvik : System.Web.UI.Page {

        ServiceClient klient = new ServiceClient();

        protected void Page_Load(object sender, EventArgs e) {
            List<EntityKohvik> list = klient.getEntityKohvikList();
            foreach (EntityKohvik item in list) {
                PlaceHolder1.Controls.Add(new LiteralControl("<a href='muudatused.aspx?kohvikID=" + item.Kohvik_ID + "'>" + item.Nimi + "</a><br />"));
            }                
        }

    }

}